module.exports = {
  plugins: [
    [
      "vuepress-plugin-nuggets-style-copy",
      {
        copyText: "复制代码",
        tip: {content: "复制成功"},
      },
    ],
  ],// 代码复制
  markdown: {
    lineNumbers: true
  },
  title: 'zhtt笔记',
  description: 'Just playing around',
  port:8081,
  dest:'./dist',
  base:'/userguide-v2/dist/',
  //base:'/userguide-v2/',
  //dest:'C:\\zhttProgramFiles\\tomcat9-8080\\webapps\\dist',
  themeConfig: {
    sidebar: [
      ['/', '首页'],
      {
        title: 'devops',   // 必要的
        path: '/devops/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
        sidebarDepth: 3,    // 可选的, 默认值是 1
        children: [
          {
            title: 'docker',   // 必要的
            path: '/devops/docker/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/devops/docker/docker', 'docker'],
              ['/devops/docker/docker-offline', 'docker-offline'],
              ['/devops/docker/images', '镜像'],
              ['/devops/docker/container', '容器'],
              ['/devops/docker/tomcat', 'tomcat'],
            ]
          },
          ['/devops/jenkins/jenkins', 'jenkins'],
          ['/devops/virtual-network', 'virtual-network'],
          ['/devops/virtual-VirtualBox', 'virtual-VirtualBox']
        ]
      },
      {
        title: 'frontend前端',   // 必要的
        path: '/frontend/index',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
        sidebarDepth: 3,    // 可选的, 默认值是 1
        children: [
          {
            title: 'angular',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/frontend/angular/index',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              ['/frontend/angular/env/create-project', '项目创建'],
              {
                title: 'angular框架',   // 必要的
                collapsable: false, // 可选的, 默认值是 true,
                path: '/frontend/angular/framework/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                sidebarDepth: 2,    // 可选的, 默认值是 1
                children: [
                  ['/frontend/angular/framework/spark-md5', 'spark-md5'],
                  ['/frontend/angular/framework/ngzorro/', 'ngzorro'],
                  ['/frontend/angular/framework/ngzorro/table', 'table'],
                  ['/frontend/angular/framework/ngzorro/table-demo', 'table-demo'],
                  ['/frontend/angular/framework/ngzorro/table-modal', 'table-modal'],
                  ['/frontend/angular/framework/ngzorro/table-form-demo', 'table-form-demo'],
                  ['/frontend/angular/issue/install', 'install'],
                ]
              },
              {
                title: 'syntax',   // 必要的
                collapsable: false, // 可选的, 默认值是 true,
                path: '/frontend/angular/syntax/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                sidebarDepth: 2,    // 可选的, 默认值是 1
                children: [
                  ['/frontend/angular/syntax/dom/', 'DOM操作'],
                  ['/frontend/angular/syntax/form/', 'form操作'],
                  ['/frontend/angular/syntax/form/form', 'form操作'],
                  ['/frontend/angular/syntax/route/', '路由'],
                ]
              },
              {
                title: 'version',   // 必要的
                collapsable: false, // 可选的, 默认值是 true,
                path: '/frontend/angular/version/v17'
              },
            ]
          },
          {
            title:'app',
            path: '/frontend/app/',
            children: [
              ['/frontend/app/', 'app'],
              ['/frontend/app/uniapp', 'uniapp'],
            ]
          },
          {
            title:'bi-ji',
            path: '/bi-ji/',
            children: [
              ['/bi-ji/BV1rP411f7Wn', '前端基础建设与架构'],
            ]
          },
          {
            title: 'css',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/frontend/css/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              ['/frontend/css/', 'css'],
              ['/frontend/css/code01', 'code01'],
            ]
          },
          {
            title: 'javascript',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/frontend/javascript/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              {
                title: '基础知识',   // 必要的
                collapsable: false, // 可选的, 默认值是 true,
                path: '/frontend/javascript/base/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                sidebarDepth: 2,    // 可选的, 默认值是 1
                children: [
                  ['/frontend/javascript/base/number', '数字'],
                ]
              },
              {
                title: '核心概念',   // 必要的
                collapsable: false, // 可选的, 默认值是 true,
                path: '/frontend/javascript/core-concept/core-concept',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                sidebarDepth: 2,    // 可选的, 默认值是 1
                children: [
                  ['/frontend/javascript/core-concept/core-concept02.md', '核心概念'],
                  ['/frontend/javascript/core-concept/iife', 'iife立即执行函数'],
                  ['/frontend/javascript/core-concept/new', 'new'],
                  ['/frontend/javascript/core-concept/precompile', 'precompile预编译'],
                  ['/frontend/javascript/core-concept/prototype', 'prototype原型'],
                  ['/frontend/javascript/core-concept/prototype02', 'prototype原型'],
                  ['/frontend/javascript/core-concept/scope', 'scope作用域'],
                  ['/frontend/javascript/core-concept/this', 'this'],
                ]
              },
              {
                title: 'other',   // 必要的
                collapsable: false, // 可选的, 默认值是 true,
                path: '/frontend/javascript/other/es2020',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                sidebarDepth: 2,    // 可选的, 默认值是 1
                children: [
                  ['/frontend/javascript/other/2023.0526file', '2023.0526file'],
                  ['/frontend/javascript/other/es2020', 'es2020'],
                  ['/frontend/javascript/other/tool-function', 'tool-function'],
                ]
              },
              {
                title: '数据类型',   // 必要的
                collapsable: false, // 可选的, 默认值是 true,
                path: '/frontend/javascript/shu-ju-lei-xing/shu-ju-lei-xing',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                sidebarDepth: 2,    // 可选的, 默认值是 1
                children: [
                  ['/frontend/javascript/shu-ju-lei-xing/let-const-var', '定义变量'],
                  ['/frontend/javascript/shu-ju-lei-xing/shu-zu', '数组'],
                ]
              }
            ]
          },
          {
            title: 'html',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/frontend/html/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              {
                title: '基础知识',   // 必要的
                collapsable: false, // 可选的, 默认值是 true,
                path: '/frontend/html/base/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                sidebarDepth: 2,    // 可选的, 默认值是 1
                children: [
                  ['/frontend/html/base/iframe', 'iframe'],
                ]
              }
              ]
          },
          {
            title: 'library',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/frontend/library/library',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              ['/frontend/library/babel/', 'babel'],
              ['/frontend/library/babel/browserslist', 'babel-browserslist'],
              ['/frontend/library/rxjs/rxjs', 'rxjs'],
              ['/frontend/library/tensorflow/tensorflow', 'tensorflow'],
            ]
          },
          {
            title: 'nodejs',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/frontend/nodejs/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              ['/frontend/nodejs/npm/npm', 'npm'],
              ['/frontend/nodejs/npm/npmrc', 'npmrc'],
              ['/frontend/nodejs/npm/npx', 'npx'],
              ['/frontend/nodejs/npm/nrm', 'nrm'],
              ['/frontend/nodejs/npm/nvm', 'nvm'],
              ['/frontend/nodejs/npm/pnpm', 'pnpm'],
              ['/frontend/nodejs/npm/volta', 'volta'],
              ['/frontend/nodejs/npm/yarn', 'yarn'],
              {
                title: 'markdown',   // 必要的
                path: '/frontend/nodejs/npm-tools/markdown/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
                collapsable: true, // 可选的, 默认值是 true,
                sidebarDepth: 3,    // 可选的, 默认值是 1
                children: [
                  ['/frontend/nodejs/npm-tools/markdown/exception/01', 'gitbook异常'],
                  ['/frontend/nodejs/npm-tools/markdown/gitbook/book-json', 'gitbook-json'],
                  ['/frontend/nodejs/npm-tools/markdown/gitbook/gitbook', 'gitbook'],
                  ['/frontend/nodejs/npm-tools/markdown/gitbook/new-app', 'gitbook创建项目'],
                  ['/frontend/nodejs/npm-tools/markdown/gitbook/plugin', 'gitbook插件'],
                  ['/frontend/nodejs/npm-tools/markdown/ji-ben-yu-fa/ji-ben-yu-fa', '基本语法'],
                  ['/frontend/nodejs/npm-tools/markdown/ji-ben-yu-fa/duan-luo-yu-zi-ti', '段落与字体'],
                  ['/frontend/nodejs/npm-tools/markdown/ji-ben-yu-fa/table', '表格'],
                  ['/frontend/nodejs/npm-tools/markdown/chapter1', 'chapter1'],
                  ['/frontend/nodejs/npm-tools/markdown/media', 'media'],
                  ['/frontend/nodejs/npm-tools/markdown/vuepress', 'vuepress+markdown'],
                ]
              },
              ['/frontend/nodejs/npm-tools/tools', 'npm工具'],
              ['/frontend/nodejs/npm-tools/vuepress', 'vuepress'],
            ]
          },
          {
            title: 'typescript',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/frontend/typescript/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              ['/frontend/typescript/ji-chu-lei-xing/', '基础类型'],
            ]
          },
          {
            title: 'vue',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/frontend/vue/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              ['/frontend/vue/', '项目创建'],
            ]
          }
        ]
      },
      {
        title: 'java',   // 必要的
        path: '/java/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
        children: [
          {
            title: 'base',   // 必要的
            path: '/java/base/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/java/db/redis', 'redis'],
              ['/java/db/redis-config', 'redis-config']
            ]
          },
          {
            title: '环境',   // 必要的
            path: '/java/environment/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/java/environment/java-environment', 'java环境'],
              ['/java/environment/jvm', 'jvm'],
              ['/java/environment/mongodb', 'mongodb'],
              ['/java/environment/mysql', 'mysql'],
              ['/java/environment/mysql-yu-wei', 'mysql运维'],
              ['/java/environment/tomcat-environment', 'tomcat环境'],
            ]
          },
          {
            title: 'springboot',   // 必要的
            path: '/java/springboot/springboot',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/java/springboot/build-war', '打war包'],
              ['/java/springboot/maven-jar', '依赖本地jar'],
              ['/java/springboot/safety', 'safety'],
              ['/java/springboot/springboot', 'springboot'],
            ]
          }
        ]
      },
      {
        title: 'linux',   // 必要的
        path: '/linux/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
        children: [
          {
            title: '常用命令',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/linux/01/grep', 'grep'],
              ['/linux/01/jar', 'jar'],
              ['/linux/01/sh', 'sh个人运维脚本'],
              ['/linux/01/vim', 'vim'],
              ['/linux/01/scp', 'scp'],
              ['/linux/01/打包压缩', 'zip'],
              ['/linux/security', 'security'],
              ['/linux/tool', 'tool'],
            ]
          }
        ]
      },
      {
        title: 'monitor',   // 必要的
        path: '/monitor/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
        children: [
          {
            title: '面试',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/monitor/sentry', 'sentry'],
            ]
          }
        ]
      },
      {
        title: 'other',   // 必要的
        path: '/other/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
        children: [
          {
            title: '面试',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/other/mian-shi/01', '01'],
            ]
          }
        ]
      },
      {
        title: '性能与安全',   // 必要的
        path: '/performance-safety/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
        sidebarDepth: 3,    // 可选的, 默认值是 1
        children: [
          {
            title: '性能',   // 必要的
            path: '/performance-safety/performance/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/performance-safety/performance/2021-0326', 'docker'],
              ['/performance-safety/performance/2021-1105', '镜像'],
              ['/performance-safety/performance/2023.0102', '2023.0102'],
              ['/performance-safety/performance/2023.0106', '2023.0106'],
              ['/performance-safety/performance/2023.0110cache', '2023.0110cache'],
              ['/performance-safety/performance/link', 'link'],
              ['/performance-safety/performance/performance', 'performance'],
              ['/performance-safety/performance/tomcat', 'tomcat'],
              ['/performance-safety/performance/tomcat-apr', 'tomcat-apr'],
              ['/performance-safety/performance/tomcat-hei-ma', 'tomcat-hei-ma'],
              ['/performance-safety/performance/tomcat-jvisualvm', 'tomcat-性能监控jvisualvm'],
              ['/performance-safety/performance/tomcat-log', 'tomcat-log'],
            ]
          },
          {
            title: '安全',   // 必要的
            path: '/performance-safety/security/security',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            collapsable: false, // 可选的, 默认值是 true,
            sidebarDepth: 3,    // 可选的, 默认值是 1
            children: [
              ['/performance-safety/security/01', '01'],
              ['/performance-safety/security/bian-ma-fang-shi', 'bian-ma-fang-shi'],
              ['/performance-safety/security/csp', 'csp'],
              ['/performance-safety/security/security', 'security'],
              ['/performance-safety/security/url', 'url'],
            ]
          }
        ]
      },
      {
        title: 'software软件配置',   // 必要的
        path: '/software/',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
        sidebarDepth: 3,    // 可选的, 默认值是 1
        children: [
          {
            title: 'chrome',   // 必要的
            path: '/software/chrome',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              ['/software/chrome/', 'chrome插件'],
              ['/software/chrome/chrome', '开发者工具'],
              ['/software/chrome/vimium', 'vimium'],
            ]
          },
          {
            title:'git',
            path: '/software/git',
            sidebarDepth: 2,
            children: [
              ['/software/git/fen-zhi/check-by-history', 'check-by-history'],
              ['/software/git/fen-zhi/fen-zhi-merge', 'fen-zhi-merge'],
              ['/software/git/fen-zhi/fen-zhi-rename', 'fen-zhi-rename'],
              ['/software/git/fen-zhi/git-fen-zhi', 'git-fen-zhi'],
              ['/software/git/log/log1', 'log1'],
              ['/software/git/new-project/ben-di-fei-git-xiang-mu-push', 'ben-di-fei-git-xiang-mu-push'],
              ['/software/git/new-project/ben-di-fei-git-xiang-mu-push2', 'ben-di-fei-git-xiang-mu-push2'],
              ['/software/git/new-project/ben-di-xiang-mu-yi-cun-zai', 'ben-di-xiang-mu-yi-cun-zai'],
              ['/software/git/new-project/cong-ma-yun-xia-zai-xiang-mu', 'cong-ma-yun-xia-zai-xiang-mu'],
              ['/software/git/new-project/github', 'github'],
              ['/software/git/rollback/rollback', 'rollback'],
              ['/software/git/git-linux', 'git-linux'],
              ['/software/git/git-stash', 'git-stash'],
              ['/software/git/git-yi-chang', 'git-yi-chang'],
              ['/software/git/gitbook', 'gitbook'],
              ['/software/git/SUMMARY', 'SUMMARY'],
            ]
          },
          ['/software/clover', 'clover'],
          ['/software/cmder', 'cmder'],
          ['/software/everything', 'everything'],
          {
            title: 'idea',   // 必要的
            collapsable: false, // 可选的, 默认值是 true,
            path: '/software/idea',      // 可选的, 标题的跳转链接，应为绝对路径且必须存在
            sidebarDepth: 2,    // 可选的, 默认值是 1
            children: [
              ['/software/idea', 'idea插件'],
            ]
          },
          ['/software/nginx', 'nginx'],
          ['/software/sublime', 'sublime'],
          ['/software/window', 'window'],
          ['/software/zoomit', 'zoomit'],
        ]
      },
    ],
  }
}
